/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Cliente.util;

import javax.swing.JTextField;

/**
 *
 * @author Caio Valentim
 */
public class OrganizarTexto {

    public void trocaParaPonto(JTextField t1, JTextField t2, JTextField t3, JTextField t4, JTextField t5) {
        t1.setText(t1.getText().replace(",", "."));
        t2.setText(t2.getText().replace(",", "."));
        t3.setText(t3.getText().replace(",", "."));
        t4.setText(t4.getText().replace(",", "."));
        t5.setText(t5.getText().replace(",", "."));
    }

    public void trocaParaVirgula(JTextField t1, JTextField t2, JTextField t3, JTextField t4, JTextField t5) {
        t1.setText(t1.getText().replace(".", ","));
        t2.setText(t2.getText().replace(".", ","));
        t3.setText(t3.getText().replace(".", ","));
        t4.setText(t4.getText().replace(".", ","));
        t5.setText(t5.getText().replace(".", ","));
    }
}
